//
//  XLTextField.swift
//  XLWeiBo
//
//  Created by 李晓龙 on 16/9/20.
//  Copyright © 2016年 lixiaolong. All rights reserved.
//

import UIKit

@IBDesignable
class XLTextField: UITextField {

   
    //设置边框颜色
    @IBInspectable var borderColor: UIColor? {
        
        didSet{
            self.layer.borderColor = borderColor?.cgColor
        }
        
    }
    @IBInspectable var borderWith: CGFloat = 2 {
        
        didSet {
            self.layer.borderWidth = borderWith
        }
    }
    //设置边框圆角
    @IBInspectable var cornerRadius: CGFloat = 3 {
        
        didSet{
            self.layer.cornerRadius = cornerRadius
            self.layer.masksToBounds = true
        }
    }
    
    
    
    
}
